package com.yuyou.fn.vo;

import com.yuyou.fn.common.util.Utils;
import org.apache.commons.lang3.RandomStringUtils;

import java.util.Date;

public class AllinPayBaseResponseVo {
    private String retcode;

    private String retmsg;

    private String cusid;
    private String appid;
    private String randomstr;
    private String timestamp;

    private String sign;
    private String trxcode = "T001";


    public void initHead(String cusid , String appid ){
        this.cusid = cusid;
        this.appid = appid ;
        timestamp = Utils.formatDate(new Date(), "yyyyMMddHHmmss");
        randomstr = RandomStringUtils.randomNumeric(8);

    }

    public String getRetcode() {
        return retcode;
    }

    public void setRetcode(String retcode) {
        this.retcode = retcode;
    }

    public String getRetmsg() {
        return retmsg;
    }

    public void setRetmsg(String retmsg) {
        this.retmsg = retmsg;
    }

    public String getCusid() {
        return cusid;
    }

    public void setCusid(String cusid) {
        this.cusid = cusid;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public String getRandomstr() {
        return randomstr;
    }

    public void setRandomstr(String randomstr) {
        this.randomstr = randomstr;
    }

    public String getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(String timestamp) {
        this.timestamp = timestamp;
    }

    public String getSign() {
        return sign;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public String getTrxcode() {
        return trxcode;
    }

    public void setTrxcode(String trxcode) {
        this.trxcode = trxcode;
    }
}
